package com.galaxy.payment.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import com.galaxy.payment.domain.AccountFlow;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 资金流水记录视图对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AccountFlow.class)
public class AccountFlowVo extends BaseEntity {
    
    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 关联订单号
     */
    @ExcelProperty(value = "关联订单号")
    private String orderNo;

    /**
     * 流水类型(1:充值,2:消费,3:退款,4:积分兑换)
     */
    @ExcelProperty(value = "流水类型")
    private Integer flowType;

    /**
     * 流水类型名称
     */
    @ExcelProperty(value = "流水类型名称")
    private String flowTypeName;

    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private BigDecimal amount;

    /**
     * 变动后余额
     */
    @ExcelProperty(value = "变动后余额")
    private BigDecimal balance;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String description;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
} 